<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>游戏算法库</title>
    </head>
    <body>
        <div id="app">
            <h1>江夏尧 Javascript 游戏算法库</h1>
            <div>
                这是一个我创建的游戏算法库，通过算法实现了游戏中的很多功能，并且进行了插件化供游戏开发者自定义。
            </div>
            <div v-for="(item) in Algorithms">
                <a :href="item.path">{{item.name}}</a>
            </div>
        </div>
    </body>
    <script type="module">
        import Vue from "https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.esm.browser.min.js";
        new Vue({
            el: "#app",
            data() {
                return {
                    Algorithms: [
                        {
                            name: "A*寻路算法",
                            path: "./test/A_star.html",
                        },
                        {
                            name: "Biod 鸟群算法",
                            path: "./test/Biod.html",
                        },
                        {
                            name: "prim迷宫生成算法",
                            path: "./test/Labyrinth.html",
                        },
                        {
                            name: "地图生成器",
                            path: "./test/MapGenerator.html",
                        },
                        {
                            name: "暴击率算法",
                            path: "./test/PRD.html",
                        },
                        {
                            name: "物体追踪算法",
                            path: "./test/Tracking.html",
                        },
                        {
                            name: "物品保底算法",
                            path: "./test/Wish.html",
                        },
                    ],
                };
            },
        });
    </script>
</html>
